<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:set var="pageTitle" value="消息" />
<%@ include file="../inc/Title.jsp"%>
<head>
<link rel="stylesheet" type="text/css" href="/css/base.css" />
<script language="javascript">
	function goBack(){
		window.history.back(-1);
	}
	function doInit(){
		/**
		if(window.parent.opener.checkNewMessage!=null){//从菜单栏打开的
			window.parent.opener.checkNewMessage();
		}else{//从桌面打开的
			window.parent.opener.parent.frames["topFrame"].checkNewMessage();
		}
		**/
	}
</script>
</head>
<body onLoad="doInit();" style="background:#EAFAFF;">
		<div id="scrollDiv" style="height:468px;OVERFLOW:auto;">
		  <div class="main search-business">
			   <div class="cue-info">
					<h4>
						<c:if test="${message==null}">该消息不存在或已经被删除</c:if>
						<c:if test="${message!=null}">${message.title}</c:if>
					</h4>				   	
				  </div>
					<table width="100%" border="0" cellpadding="1" cellspacing="1">
							<tr>
								<td align="center">
								<table border="0" cellspacing="4" cellpadding="4" align="center" class="table-0" style="width:98%">
									<tr>
										<td><div align="left">发件人：${message.senderName}</div></td>
									</tr>
									<tr>
								      	<td>
								      		<div align="left">收件人：
												  	<c:forEach var="item" items="${receiverList}" varStatus="i">
												  		<c:if test="${i.index>0}">;</c:if>
												  		${item.receiverName}
												  	</c:forEach>
												</div>
								     	</td>
									</tr>
									<tr>
								      	<td>
								      		<div align="left">发送时间：<fmt:formatDate value="${message.sendTime}" pattern="yyyy-MM-dd HH:mm"/></div>
										</td>								     
									</tr>
									
									<tr>
								      	<td>
											<hr/>
										</td>
									</tr>
									<tr>
								      	<td>
											<div align="left">
												${message.content}
												<c:if test="${fn:length(accList)>0}">
													<br>附件：<br>
													<c:forEach var="attItem" items="${accList}">
														<img src="/images/a32.gif" border="0">
														<a href="<c:out value="${attItem.fileName}" />" target="_blank"><c:out value="${attItem.sourceName}" /></a>
														<br>
													</c:forEach>
												</c:if>
											</div>
										</td>
									</tr>
								</table>
								</td>
							</tr>
						</table>	
						<div class="modal-buttom">
							<input type="button" class="buttom-a" value=" 回 复 " onClick="window.location='/message/MessageNew.ihtm?reply_id=${message.id}'" <c:if test="${message.senderId==0}">disabled="disabled"</c:if>>									
							<input type="button" class="buttom-a" value=" 返 回 " onClick="goBack();">
						</div>	
			</div>
		</div>
</body>
</html>